﻿<%@ Page Title="Cadastro Vaga" Language="C#" MasterPageFile="MasterPage.master" AutoEventWireup="true" CodeFile="CadastroDaVaga.aspx.cs" Inherits="CadastroDaVaga" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <style type="text/css">
        
         .divsPadrao
         {
             padding-top:5px; 
             width:100%; 
             float:left;
             margin-bottom:5px; 
         }
         
         .TituloFieldset
         {
             font-size:large; 
             font-weight:bold;
         }
         
         .distanciaFieldset
         {
             margin-top:15px;
         }
         
         .divEmpregadorLabelLeft
         {
             width:18%;
             float:left;
             margin-left:2%;
             padding-top:2px;
         }
         
         .divEmpregadorTextboxRight
         {
             width:80%;
             float:left;
         }
         
         .divsEntrevista
         {
             float:left; 
             width:98%; 
             margin-left:2%; 
             padding-top:5px;
         }
         
         .erro
         {
             color:Red;
             float:left;
         }
    </style>
        
    <script src="../js/validacaoFormulario.js" type="text/javascript"></script>
    <script src="../js/Validacoes.js" type="text/javascript"></script>
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel runat="server" ID="upGeral" UpdateMode="Conditional">
    <ContentTemplate>
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnableScriptGlobalization="true"></asp:ScriptManager>
        
        <div id="tabs" style="font-size:small">

        <!--EMPREGADOR-->
        <fieldset class="distanciaFieldset">
            <legend class="TituloFieldset">Empregador</legend>

            <div class="divsPadrao">
                <div class="divEmpregadorLabelLeft">
                    <asp:Label ID="lblRazaoSocial" runat="server" Text="Razão Social"></asp:Label>
                </div>
                <div class="divEmpregadorTextboxRight">
                    <asp:TextBox ID="txtRazaoSocial" Enabled="false" runat="server" Width="94%"></asp:TextBox>
                </div>
            </div>  

            <div class="divsPadrao">
                <div class="divEmpregadorLabelLeft">
                    <asp:Label ID="lblNomeFantasia" runat="server" Text="Nome Fantasia"></asp:Label>
                </div>
                <div class="divEmpregadorTextboxRight">
                    <asp:TextBox ID="txtNomeFantasia" Enabled="false" runat="server" Width="94%"></asp:TextBox>
                </div>
            </div>

            <div class="divsPadrao">
                <div class="divEmpregadorLabelLeft">
                    <asp:RequiredFieldValidator runat="server" id="reqOcupacao" controltovalidate="txtOcupacao" errormessage="*" Display="Dynamic"/>
                    <asp:Label ID="lblOcupacao" runat="server" Text="Ocupação"></asp:Label>
                </div>
                <div class="divEmpregadorTextboxRight">
                    <asp:TextBox ID="txtOcupacao" runat="server" Width="94%"></asp:TextBox>
                </div>
            </div>

            <div class="divsPadrao">
                <div class="divEmpregadorLabelLeft">
                    <asp:RequiredFieldValidator runat="server" id="reqFuncao" controltovalidate="txtFuncao" errormessage="*" Display="Dynamic"/>
                    <asp:Label ID="lblFuncao" runat="server" Text="Função"></asp:Label>
                </div>
                <div class="divEmpregadorTextboxRight">
                    <asp:TextBox ID="txtFuncao" runat="server" Width="94%"></asp:TextBox>
                </div>
            </div>

        </fieldset>

        <!--INFORMAÇÕES FINANCEIRAS-->
        <fieldset class="distanciaFieldset">
            <legend class="TituloFieldset">Informações Financeiras</legend>

            <div class="divsPadrao">
                <div style="width:23%; float:left; margin-left:2%; padding-top:2px">
                    <asp:RequiredFieldValidator runat="server" id="reqSalarioOferecido" controltovalidate="txtSalarioOferecido" errormessage="*" Display="Dynamic"/>
                    <div id="divErroSalarioOferecido" class="erro" runat="server">*&nbsp</div>
                    <asp:Label ID="lblSalarioOferecido" runat="server" Text="Salário Oferecido"></asp:Label>
                </div>
                <div style="width:65%; float:left;">
                    R$ <asp:TextBox ID="txtSalarioOferecido" runat="server" Width="20%" onKeyUp="moeda(this);"></asp:TextBox>
                </div>
            </div>

            <div>
                <div style="padding-left:10px;">
                    <div id="divErroBeneficios" class="erro" runat="server">*&nbsp</div>
                    <asp:Label ID="lblBeneficios" runat="server" Text="Benefícios"></asp:Label>
                </div>
                <div style="border:1px solid black; margin-left:2%; margin-bottom:2%; margin-right:2%; text-align:left;">
                    <asp:CheckBoxList ID="cblBeneficio" runat="server" Width="100%" RepeatColumns="2"></asp:CheckBoxList>
                </div>
            </div>

        </fieldset>

        <!--HORÁRIO DE TRABALHO-->
        <fieldset class="distanciaFieldset">
            <legend class="TituloFieldset">Horário de Trabalho</legend>

                <div style="float:left; margin-left:2%; padding-bottom:5px; width:98%; ">
                    <div id="divErroPrimeiroExpediente" class="erro" runat="server">*&nbsp</div>
                    1º Expediente
                </div>
                <div style="float:left; width:98%; margin-left:2%;">
                    <div style="width:40%;float:left;margin-bottom:5px; margin-left:5%;">
                        Das
                        <asp:DropDownList ID="ddlHorarioHoras1" runat="server" AppendDataBoundItems="true">
                            <asp:ListItem Text="" Value="-1"/>
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator InitialValue="-1" ID="reqDdlHorarioHoras1" Display="Dynamic" runat="server" ControlToValidate="ddlHorarioHoras1" Text="*"/>
                        Hrs
                        <asp:DropDownList ID="ddlHorarioMinutos1" runat="server" AppendDataBoundItems="true">
                            <asp:ListItem Text="" Value="-1"/>
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator InitialValue="-1" ID="reqDdlHorarioMinutos1" Display="Dynamic" runat="server" ControlToValidate="ddlHorarioMinutos1" Text="*"/>
                        Min
                    </div>
                    <div style="width:50%;float:left;margin-bottom:5px; margin-left:5%;">
                        Às
                        <asp:DropDownList ID="ddlHorarioHoras2" runat="server" AppendDataBoundItems="true">
                            <asp:ListItem Text="" Value="-1"/>
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator InitialValue="-1" ID="reqDdlHorarioHoras2" Display="Dynamic" runat="server" ControlToValidate="ddlHorarioHoras2" Text="*"/>
                        Hrs
                        <asp:DropDownList ID="ddlHorarioMinutos2" runat="server" AppendDataBoundItems="true">
                            <asp:ListItem Text="" Value="-1"/>
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator InitialValue="-1" ID="reqDdlHorarioMinutos2" Display="Dynamic" runat="server" ControlToValidate="ddlHorarioMinutos2" Text="*"/>
                        Min    
                    </div>
                </div>

                <div style="margin-left:2%; padding-bottom:5px; width:98%; margin-top:50px;">
                    <div id="divErroSegundoExpediente" class="erro" runat="server">*&nbsp</div>
                    2º Expediente
                </div>
                <div style="float:left; width:98%; margin-left:2%;">
                    <div style="width:40%;float:left;margin-bottom:5px; margin-left:5%;">
                        Das
                        <asp:DropDownList ID="ddlHorarioHoras3" runat="server" AppendDataBoundItems="true">
                            <asp:ListItem Text="" Value="-1"/>
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator InitialValue="-1" ID="reqDdlHorarioHoras3" Display="Dynamic" runat="server" ControlToValidate="ddlHorarioHoras3" Text="*"/>
                        Hrs
                        <asp:DropDownList ID="ddlHorarioMinutos3" runat="server" AppendDataBoundItems="true">
                            <asp:ListItem Text="" Value="-1"/>
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator InitialValue="-1" ID="reqDdlHorarioMinutos3" Display="Dynamic" runat="server" ControlToValidate="ddlHorarioMinutos3" Text="*"/>
                        Min
                    </div>
                    <div style="width:50%;float:left;margin-bottom:5px; margin-left:5%;">
                        Às
                        <asp:DropDownList ID="ddlHorarioHoras4" runat="server" AppendDataBoundItems="true">
                            <asp:ListItem Text="" Value="-1"/>
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator InitialValue="-1" ID="reqDdlHorarioHoras4" Display="Dynamic" runat="server" ControlToValidate="ddlHorarioHoras4" Text="*"/>
                        Hrs
                        <asp:DropDownList ID="ddlHorarioMinutos4" runat="server" AppendDataBoundItems="true">
                            <asp:ListItem Text="" Value="-1"/>
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator InitialValue="-1" ID="reqDdlHorarioMinutos4" Display="Dynamic" runat="server" ControlToValidate="ddlHorarioMinutos4" Text="*"/>
                        Min    
                    </div>
                </div>


            <div id="divCargaHorariaSemanal" class="divsPadrao">
                <div style="width:28%; float:left; margin-left:2%; padding-top:2px">
                    <asp:RequiredFieldValidator runat="server" id="reqCargaHorariaSemanal" controltovalidate="txtCargaHorariaSemanal" errormessage="*" Display="Dynamic"/>
                    <div id="divErroCargaHorariaSemanal" class="erro" runat="server">*&nbsp</div>
                    <asp:Label ID="lblCargaHorariaSemanal" runat="server" Text="Carga Horária Semanal"></asp:Label>
                </div>
                <div style="width:70%; float:left;">
                    <asp:TextBox ID="txtCargaHorariaSemanal" runat="server" Width="20%" MaxLength="3" onKeyDown="return somenteNumeros(this);"></asp:TextBox>
                    Horas
                </div>
            </div>

        </fieldset>
        
        <!--ENTREVISTA-->
        <fieldset class="distanciaFieldset">
            <legend class="TituloFieldset">Entrevista</legend>

            <div id="divContatoEntrevista" class="divsPadrao">
                <div style="float:left; width:28%; margin-left:2%; padding-top:2px">
                    <asp:RequiredFieldValidator runat="server" id="reqContato" controltovalidate="txtContato" errormessage="*" Display="Dynamic"/>
                    <asp:Label ID="lblContato" runat="server" Text="Contato p/ Entrevista"></asp:Label>
                </div>
                <div style="float:left; width:68%; margin-right:2%;">
                    <asp:TextBox ID="txtContato" runat="server" Width="100%"></asp:TextBox>
                </div>
            </div>

            <fieldset style="margin-left:5px; margin-right:5px; margin-bottom:5px;">
                <legend>Local Entrevista</legend>
        
                <div class="divsEntrevista">
                    <div style="float:left; width:85%;">
                        <div>
                            <asp:RequiredFieldValidator runat="server" id="reqEndereco" controltovalidate="txtEndereco" errormessage="*" Display="Dynamic"/>
                            <asp:Label ID="lblEndereco" runat="server" Text="Endereço"></asp:Label>
                        </div>
                        <div>
                            <asp:TextBox ID="txtEndereco" runat="server" Width="97%"></asp:TextBox>
                        </div>
                    </div>

                    <div style="float:left; width:13%; margin-right:2%;">
                        <div>
                            <asp:RequiredFieldValidator runat="server" id="reqNumero" controltovalidate="txtNumero" errormessage="*" Display="Dynamic"/>
                            <div id="divErroNumero" class="erro" runat="server">*&nbsp</div>
                            <asp:Label ID="lblNumero" runat="server" Text="Número"></asp:Label>
                        </div>
                        <div>
                            <asp:TextBox ID="txtNumero" runat="server" Width="98%" onKeyDown="return somenteNumeros(this);"></asp:TextBox>
                        </div>
                    </div>
                </div>
           
                <div class="divsEntrevista">
                    <div style="float:left; width:50%;">
                        <div>
                            <asp:RequiredFieldValidator runat="server" id="reqComplemento" controltovalidate="txtComplemento" errormessage="*" Display="Dynamic"/>
                            <asp:Label ID="lblComplemento" runat="server" Text="Complemento"></asp:Label>
                        </div>
                        <div>
                            <asp:TextBox ID="txtComplemento" runat="server" Width="95%"></asp:TextBox>
                        </div>
                    </div>

                    <div style="float:left; width:50%;">
                        <div>
                            <asp:RequiredFieldValidator runat="server" id="reqBairroDistrito" controltovalidate="txtBairroDistrito" errormessage="*" Display="Dynamic"/>
                            <asp:Label ID="lblBairroDistrito" runat="server" Text="Bairro/Distrito"></asp:Label>
                        </div>
                        <div>
                            <asp:TextBox ID="txtBairroDistrito" runat="server" Width="95%"></asp:TextBox>
                        </div>
                    </div>
                </div>

                <div class="divsEntrevista">
                    <div style="float:left; width:20%;">
                        <div>
                            <asp:RequiredFieldValidator runat="server" id="reqCep" controltovalidate="txtCep" errormessage="*" Display="Dynamic"/>
                            <div id="divErroCep" class="erro" runat="server">*&nbsp</div>
                            <asp:Label ID="lblCep" runat="server" Text="Cep"></asp:Label>
                        </div>
                        <div>
                            <asp:TextBox ID="txtCep" ClientIDMode="Static" runat="server" Width="90%" onKeyPress="MascaraCep(this);" maxlength="10" ></asp:TextBox>
                        </div>
                    </div>

                    <div style="float:left; width:68%;">
                        <div>
                            <asp:RequiredFieldValidator runat="server" id="reqMunicipio" controltovalidate="txtMunicipio" errormessage="*" Display="Dynamic" />
                            <asp:Label ID="lvlMunicipio" runat="server" Text="Município"></asp:Label>
                        </div>
                        <div>
                            <asp:TextBox ID="txtMunicipio" runat="server" Width="96%"></asp:TextBox>
                        </div>
                    </div>

                    <div style="float:left; width:12%;">
                        <div>
                            <asp:RequiredFieldValidator InitialValue="-1" ID="Req_ID" Display="Dynamic" runat="server" ControlToValidate="ddlUf" Text="*" ErrorMessage="ErrorMessage" />
                            <div id="divErroUf" class="erro" runat="server">*&nbsp</div>
                            <asp:Label ID="lblUf" runat="server" Text="UF"></asp:Label>
                        </div>
                        <div>
                            <asp:DropDownList ID="ddlUf" runat="server" Width="48px" AppendDataBoundItems="true">
                                <asp:ListItem Text="" Value="-1" />
                            </asp:DropDownList>
                        </div>
                    </div>
                </div>

                <div class="divsEntrevista">
                    <div style="width:30%;float:left;">
                        <asp:RequiredFieldValidator id="reqReferenciaAcesso" Display="Dynamic" runat="server" ControlToValidate="txtReferenciaAcesso" Text="*" ErrorMessage="ErrorMessage" />
                        <asp:Label ID="lblReferenciaAcesso" runat="server" Text="Referência de Acesso"></asp:Label>
                    </div>
                    <div style="width:70%;float:left;">
                        <asp:TextBox ID="txtReferenciaAcesso" runat="server" Width="97%" Rows="3" TextMode="MultiLine"></asp:TextBox>
                    </div>
                </div>
            
                <div class="divsEntrevista">
                    <div style="float:left; width:23%;">
                        <div>
                            <asp:RequiredFieldValidator runat="server" id="reqTelefone" controltovalidate="txtTelefone" errormessage="*" Display="Dynamic"/>
                            <div id="divErroTelefone" class="erro" runat="server">*&nbsp</div>
                            <asp:Label ID="lblTelefone" runat="server" Text="Telefone"></asp:Label>
                        </div>
                        <div>
                            <asp:TextBox ID="txtTelefone" runat="server" Width="90%" onKeyPress="MascaraTelefone(this);" maxlength="14" ></asp:TextBox>
                        </div>
                    </div>

                    <div style="float:left; width:77%;">
                        <div>
                            <asp:RequiredFieldValidator runat="server" id="reqEmail" controltovalidate="txtEmail" errormessage="*" Display="Dynamic"/>
                            <asp:Label ID="lblEmail" runat="server" Text="Email"></asp:Label>
                        </div>
                        <div>
                            <asp:TextBox ID="txtEmail" runat="server" Width="97%"></asp:TextBox>
                        </div>
                    </div>
                </div>

                <div class="divsEntrevista">
                    <div style=" width:30%;float:left;">
                        <asp:RequiredFieldValidator id="reqObservacoes" Display="Dynamic" runat="server" ControlToValidate="txtObservacoes" Text="*" ErrorMessage="ErrorMessage" />
                        <asp:Label ID="lblObservacoes" runat="server" Text="Observações"></asp:Label>
                    </div>
                    <div style="width:70%;float:left;padding-bottom:5px;">
                        <asp:TextBox ID="txtObservacoes" runat="server" Width="97%" Rows="3" TextMode="MultiLine"></asp:TextBox>
                    </div>
                </div>

            </fieldset>
            
        </fieldset>

        <br />
    
        <div style="text-align:right;">
            <asp:ImageButton runat="server" ID="btnCadastrar" ImageUrl="../figuras/bCadastrarC.gif" OnClick="Cadastrar_Click"/>
        </div>

        </div>
        
    </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
